﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SheepStorage.Domain.DTO.Output;
using SheepStorage.Service.Interface;

namespace SheepStorage.API.Controllers
{
    /// <summary>
    /// 种母生产统计
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ProductionStatisticsController : ControllerBase
    {
        IProductionStatisticsService _res;

        public ProductionStatisticsController(IProductionStatisticsService res)
        {
            _res = res;
        }

        /// <summary>
        /// 种母存栏变动
        /// </summary>
        /// <param name="dates"></param>
        /// <returns></returns>
        [HttpGet]
        public IActionResult ShowAlternateTransplanting(string? dates)
        {
            return Ok(_res.ShowAlternateTransplanting(dates));
        }


        /// <summary>
        /// 羔羊存栏
        /// </summary>
        /// <param name="dates"></param>
        /// <returns></returns>
        [HttpGet]
        public IActionResult ShowLambLivestock(string? dates)
        {
            return Ok(_res.ShowLambLivestock(dates));
        }

        /// <summary>
        /// 分娩统计
        /// </summary>
        /// <param name="dates"></param>
        /// <returns></returns>
        [HttpGet]
        public IActionResult ShowDelivery(string dates)
        {
            return Ok(_res.ShowDelivery(dates));
        }

        /// <summary>
        /// 断奶统计
        /// </summary>
        /// <param name="dates"></param>
        /// <returns></returns>
        [HttpGet]
        public IActionResult ShowWeaning(string dates)
        {
            return Ok(_res.ShowWeaning(dates));
        }






        }
}
